<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbmail/mail/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('DBMAIL_ROLE_ID') ?>', name: 'role_id', width: '150', process: formatSearch},
                        //{display: '<?= translate('DBMAIL_GMID') ?>', name: 'gmid', width: '150', process: formatSearch},
                        {display: '<?= translate('DBMAIL_MAIL_GMID') ?>', name: 'mail_id', width: '100', process: formatSearch},
                        {display: '<?= translate('DBMAIL_ITEMGMID') ?>', name: 'item_get', width: '300'},                         
                        {display: '<?= translate('DBMAIL_STATE') ?>', name: 'state', width: '100'},                                               
                        {display: '<?= translate('DBMAIL_NAME') ?>', name: 'name', width: '100'},                        
                        {display: '<?= translate('DBMAIL_MAIL_SOURCE') ?>', name: 'mail_source', width: '250'},                        
                        ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                      //  {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete'},
                    ],
                    <!-- searchitems: [{display: '<?= translate('ROLE_NAME') ?>', name: 'B.name'}], -->
                }));
                SG.admin = $.extend(SG.admin, {
                    //del_url: '<?= site_url("message/mail/del/") ?>',
                    detail_url: '<?= site_url("message/mail/detail/") ?>',
                   // replay_url: '<?= site_url("message/mail/replay/") ?>',
                });
            });
        </script>
    </body>
</html>